﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using HotelManagement._04.OBJECT;
using HotelManagement._03.DAO;

namespace HotelManagement._02.BUS
{
    class ServiceBUS
    {
        ServiceDAO m_ServiceDAO = new ServiceDAO();
        public DataTable ViewService()
        {
            return m_ServiceDAO.ViewService("pr_tblService_SelectAll");
        }
        public bool AddService(Service ip_Service)
        {
            return m_ServiceDAO.AddService(ip_Service, "pr_tblService_Insert");
        }
        public bool UpdateService(Service ip_Service)
        {
            return m_ServiceDAO.UpdateService(ip_Service, "pr_tblService_Update");
        }
        public bool DeleteService(Service ip_Service)
        {
            return m_ServiceDAO.DeleteService(ip_Service, "pr_tblService_DeleteRow");
        }
        public DataTable SearchService(string ip_KeyWord)
        {
            return m_ServiceDAO.SearchService(ip_KeyWord, "pr_tblService_Search");
        }
    }
}
